package com.yanqu.road.entity.activity.washe.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.ArrayList;
import java.util.List;

/**
 * 对局记录
 */
@FieldTypeAnnotation(tableName = "t_u_washe_battle_record")
public class WasheBattleRecord extends DataObject {

    @FieldTypeAnnotation(desc = "玩家ID", select = true)
    private long userId;
    @FieldTypeAnnotation(desc = "唯一编号", select = true)
    private long no;
    @FieldTypeAnnotation(desc = "对局结束时间")
    private long time;

    @FieldTypeAnnotation(desc = "对手信息")
    private WasheBattleRecordOpponent opponentInfo;
    @FieldTypeAnnotation(desc = "对方卡牌ID")
    private int opponentCardId;
    @FieldTypeAnnotation(desc = "对方得分")
    private long opponentScore;

    @FieldTypeAnnotation(desc = "我方卡牌")
    private int selfCardId;
    @FieldTypeAnnotation(desc = "我方得分")
    private long selfScore;
    @FieldTypeAnnotation(desc = "我方输赢")
    private boolean win;
    @FieldTypeAnnotation(desc = "我方荣誉点变化")
    private long scoreChange;

    @FieldTypeAnnotation(desc = "记录类型 0常规，1锦标赛")
    private int type;

    @FieldTypeAnnotation(desc = "我方技能")
    private List<Integer> selfSkills = new ArrayList<>();
    @FieldTypeAnnotation(desc = "对方技能")
    private List<Integer> opponentSkills = new ArrayList<>();
    @FieldTypeAnnotation(desc = "锦标赛积分变动")
    private long jinBiaoScoreChange;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getNo() {
        return no;
    }

    public void setNo(long no) {
        this.no = no;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public WasheBattleRecordOpponent getOpponentInfo() {
        return opponentInfo;
    }

    public void setOpponentInfo(WasheBattleRecordOpponent opponentInfo) {
        this.opponentInfo = opponentInfo;
    }

    public int getOpponentCardId() {
        return opponentCardId;
    }

    public void setOpponentCardId(int opponentCardId) {
        this.opponentCardId = opponentCardId;
    }

    public long getOpponentScore() {
        return opponentScore;
    }

    public void setOpponentScore(long opponentScore) {
        this.opponentScore = opponentScore;
    }

    public int getSelfCardId() {
        return selfCardId;
    }

    public void setSelfCardId(int selfCardId) {
        this.selfCardId = selfCardId;
    }

    public long getSelfScore() {
        return selfScore;
    }

    public void setSelfScore(long selfScore) {
        this.selfScore = selfScore;
    }

    public boolean isWin() {
        return win;
    }

    public void setWin(boolean win) {
        this.win = win;
    }

    public long getScoreChange() {
        return scoreChange;
    }

    public void setScoreChange(long scoreChange) {
        this.scoreChange = scoreChange;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<Integer> getSelfSkills() {
        return selfSkills;
    }

    public void setSelfSkills(List<Integer> selfSkills) {
        this.selfSkills = selfSkills;
    }

    public List<Integer> getOpponentSkills() {
        return opponentSkills;
    }

    public void setOpponentSkills(List<Integer> opponentSkills) {
        this.opponentSkills = opponentSkills;
    }

    public long getJinBiaoScoreChange() {
        return jinBiaoScoreChange;
    }

    public void setJinBiaoScoreChange(long jinBiaoScoreChange) {
        this.jinBiaoScoreChange = jinBiaoScoreChange;
    }
}
